using System;
using System.Collections.Generic;
using System.Text;

namespace CodePlex.Resourceful
{


#if SILVERLIGHT
    public class CodePlexException : Exception
    {
#else
     [global::System.Serializable]
    public class CodePlexException : Exception
    {

        protected CodePlexException(
         System.Runtime.Serialization.SerializationInfo info,
         System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }
#endif
   


        public CodePlexException() { }
        public CodePlexException(string message) : base(message) { }
        public CodePlexException(string message, Exception inner) : base(message, inner) { }
       

        public static CodePlexException Format(string message, params object[] args)
        {
            return new CodePlexException(string.Format(message, args));
        }

        public static CodePlexException Format(Exception inner, string message, params object[] args)
        {
            return new CodePlexException(string.Format(message, args), inner);
        }

    }





  
}
